<html>
<head><meta charset="utf-8"><title>Adding mir-opt test · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html">Adding mir-opt test</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="196056262"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056262" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056262">(May 02 2020 at 15:20)</a>:</h4>
<p>Hello! I tried to take a look at <a href="https://github.com/rust-lang/rust/issues/46227" title="https://github.com/rust-lang/rust/issues/46227">https://github.com/rust-lang/rust/issues/46227</a><br>
Its about adding test to check that bounds check are properly removed.<br>
I though adding mir-opt test would be the right way to do it. Am i right?</p>



<a name="196056576"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056576" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056576">(May 02 2020 at 15:27)</a>:</h4>
<p><span class="user-mention" data-user-id="120823">@DPC</span> if you are around :)</p>



<a name="196056617"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056617" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> DPC <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056617">(May 02 2020 at 15:28)</a>:</h4>
<p>sure xD</p>



<a name="196056625"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056625" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056625">(May 02 2020 at 15:28)</a>:</h4>
<p>haha</p>



<a name="196056629"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056629" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056629">(May 02 2020 at 15:28)</a>:</h4>
<p>You'd need an LLVM IR test here since LLVM is what removes bounds checks</p>



<a name="196056639"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056639" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056639">(May 02 2020 at 15:28)</a>:</h4>
<p>oh thanks</p>



<a name="196056981"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Adding%20mir-opt%20test/near/196056981" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Adding.20mir-opt.20test.html#196056981">(May 02 2020 at 15:34)</a>:</h4>
<p>is there a guide of some kind for that? The rustc developer guide mentions <a href="https://llvm.org/docs/CommandGuide/FileCheck.html" title="https://llvm.org/docs/CommandGuide/FileCheck.html">https://llvm.org/docs/CommandGuide/FileCheck.html</a> but i am a bit lost</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>